package com.dream.service.impl;

import com.dream.bean.User;
import com.dream.dao.HelloDao;
import com.dream.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 匠人码农
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Autowired
    private HelloDao helloDao;

    @Override
    public User queryUser(int id) {
        return this.helloDao.selectUserById(id);
    }
}
